package com.milkshopbackend.milkshop.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.milkshopbackend.milkshop.entity.ScheduledTask;

public interface ScheduledTaskService extends IService<ScheduledTask> {
    void createTask(String taskName, String taskKey, String taskDesc, String cronExpression);
    void updateTaskStatus(String taskKey, Integer taskStatus, String errorMsg);
    void updateNextExecuteTime(String taskKey, String cronExpression);
    ScheduledTask getTaskByKey(String taskKey);
} 